/** 系统首页 **/
import Home from "@/views/home/index";

/** 学生基本信息管理 **/

const StudentManage = () => import("../../views/student-manage");
const StudentBase = () => import("../../views/student-manage/student-base");
const StudentAward = () => import("../../views/student-manage/student-award");

/** 教师基本信息管理 **/

const TeacherManage = () => import("../../views/teacher-manage");
const TeacherBase = () => import("../../views/teacher-manage/teacher-base");
const TeacherSocialService = () => import("../../views/teacher-manage/teacher-social-service");
const TeacherAttendance =() =>import('../../views/teacher-manage/teacher-attendance')

/** 综合模块 **/

const Comprehensive = () => import("../../views/comprehensive");
const PolicyDocument = () => import("../../views/comprehensive/policy-document");

/** 系统管理 **/

const SystemManage = () => import("../../views/system-manage");
const SystemMenu = () => import("../../views/system-manage/system-menu");
const SystemRole = () => import("../../views/system-manage/system-role");
const SystemUser = () => import("../../views/system-manage/system-user");

/** 插件管理 **/

const pluginManage = () => import("../../views/plugin-manage");
const pluginIcon = () => import("../../views/plugin-manage/plugin-icon");

/** 科研模块 **/
const ResearchManage = () => import("../../views/research-manage");
const ResearchCourseBook = () => import("../../views/research-manage/research-course-book");
const ResearchIntellectual = () => import("../../views/research-manage/research-intellectual");
const ResearchPaper = () => import("../../views/research-manage/research-paper");
const ResearchWork = () => import("../../views/research-manage/research-work");

/**
 * 党建工作模块
 */
const PartyManager = ()=>import("../../views/party-manager")
const  PartyBase = ()=>import("../../views/party-manager/party-base")
const  PartyInfoManager = ()=>import("../../views/party-manager/party-info-manager")
const  PartyMeeting = ()=>import("../../views/party-manager/party-meeting")

/**
 * 机房信息
 * */
const RoomManager = ()=>import("../../views/room-manager")
const RoomBase = ()=>import("../../views/room-manager/room-base")

/**
 * 教务管理
 * */
const OfficeManager = ()=>import("../../views/office-manager")
const examination = ()=>import("../../views/office-manager/office-base/examination")
const OfficeProgress = ()=>import("../../views/office-manager/office-base/progress")

const dynamicRouter = [
    {
        path: "home",
        name: "home",
        component: Home,
        meta: {
            // 路由名字
            name: "首页",
            // 权限匹配规则
            permissionName: "system:management:home",
            // 图标
            icon: "fa fa-home"
        }
    },
    {
        path: "/student/manage",
        name: "student-manage",
        component: StudentManage,
        meta: {
            // 路由名字
            name: "学生信息管理",
            // 权限匹配规则
            permissionName: "student:manage",
            // 图标
            icon: "el-icon-location"
        },
        children: [
            {
                path: "base",
                name: "student-base",
                component: StudentBase,
                meta: {
                    // 路由名字
                    name: "学生基本信息",
                    // 权限匹配规则
                    permissionName: "student:base:list",
                    // 图标
                    icon: ""
                }
            },
            {
                path: "award",
                name: "student-award",
                component: StudentAward,
                meta: {
                    // 路由名字
                    name: "学生获奖信息",
                    // 权限匹配规则
                    permissionName: "student:award:list",
                    // 图标
                    icon: ""
                }
            }
        ]
    },
    // 教师模块
    {
        path: "/teacher/manage",
        name: "teacher-manage",
        component: TeacherManage,
        meta: {
            // 路由名字
            name: "教师信息管理",
            // 权限匹配规则
            permissionName: "teacher:manage",
            // 图标
            icon: ""
        },
        children: [
            {
                path: "base",
                name: "teacher-base",
                component: TeacherBase,
                meta: {
                    // 路由名字
                    name: "教师基本信息",
                    // 权限匹配规则
                    permissionName: "teacher:base:list",
                    // 图标
                    icon: ""
                }
            },
            {
                path: "attendance",
                name: "teacher-attendance",
                component: TeacherAttendance,
                meta: {
                    // 路由名字
                    name: "教师考勤管理",
                    // 权限匹配规则
                    permissionName: "teacher:base:attendance",
                    // 图标
                    icon: ""
                }
            },
            {
                path: "social/service",
                name: "teacher-social-service",
                component: TeacherSocialService,
                meta: {
                    // 路由名字
                    name: "教师社会服务",
                    // 权限匹配规则
                    permissionName: "teacher:social:service:list",
                    // 图标
                    icon: ""
                }
            }
        ]
    },
    // 党建工作
    {
        path: "/party/manager",
        name: "party-manager",
        component: PartyManager,
        meta: {
            // 路由名字
            name: "党建工作管理",
            // 权限匹配规则
            permissionName: "party:manager",
            // 图标
            icon: ""
        },
        children: [
            {
                path: "/party/office-base",
                name: "party-base",
                component: PartyBase,
                meta: {
                    // 路由名字
                    name: "党员信息管理",
                    // 权限匹配规则
                    permissionName: "party:manager:base",
                    // 图标
                    icon: ""
                }
            },
            {
                path: "/party/info/manager",
                name: "party-info-manager",
                component: PartyInfoManager,
                meta: {
                    // 路由名字
                    name: "党员信息管理",
                    // 权限匹配规则
                    permissionName: "party:manager:info",
                    // 图标
                    icon: ""
                }
            },
            {
                path: "/party/meeting",
                name: "party-meeting",
                component: PartyMeeting,
                meta: {
                    // 路由名字
                    name: "会议记录",
                    // 权限匹配规则
                    permissionName: "party:manager:meeting",
                    // 图标
                    icon: ""
                }
            },
        ]
    },
    // 机房模块
    {
        path: "/room/manager",
        name: "room-manager",
        component: RoomManager,
        meta: {
            // 路由名字
            name: "机房管理",
            // 权限匹配规则
            permissionName: "room:manager",
            // 图标
            icon: ""
        },
        children: [
            {
                path: "/room/base",
                name: "room-base",
                component: RoomBase,
                meta: {
                    // 路由名字
                    name: "机房信息",
                    // 权限匹配规则
                    permissionName: "room:manager:base",
                    // 图标
                    icon: ""
                }
            }
        ]
    },

    // 教务管理模块
    {
        path: "/office/manager",
        name: "office-manager",
        component: OfficeManager,
        meta: {
            // 路由名字
            name: "机房管理",
            // 权限匹配规则
            permissionName: "office:manager",
            // 图标
            icon: ""
        },
        children: [
            {
                path: "/office/base",
                name: "examination",
                component: examination,
                meta: {
                    // 路由名字
                    name: "考试安排信息",
                    // 权限匹配规则
                    permissionName: "office:manager:examination",
                    // 图标
                    icon: ""
                }
            },
            {
                path: "/office/base",
                name: "office-progress",
                component: OfficeProgress,
                meta: {
                    // 路由名字
                    name: "教学进程",
                    // 权限匹配规则
                    permissionName: "office:manager:progress",
                    // 图标
                    icon: ""
                }
            }
        ]
    },
    // 科研模块
    {
        path: "/research/manage",
        name: "research-manage",
        component: ResearchManage,
        meta: {
            // 路由名字
            name: "科研信息管理",
            // 权限匹配规则
            permissionName: "research:manage",
            // 图标
            icon: ""
        },
        children: [
            {
                path: "course/book",
                name: "research-course-book",
                component: ResearchCourseBook,
                meta: {
                    // 路由名字
                    name: "科研教材管理",
                    // 权限匹配规则
                    permissionName: "research:course:book:list",
                    // 图标
                    icon: ""
                }
            },
            {
                path: "intellectual",
                name: "research-intellectual",
                component: ResearchIntellectual,
                meta: {
                    // 路由名字
                    name: "科研知识产权",
                    // 权限匹配规则
                    permissionName: "research:intellectual:list",
                    // 图标
                    icon: ""
                }
            },
            {
                path: "paper",
                name: "research-paper",
                component: ResearchPaper,
                meta: {
                    // 路由名字
                    name: "科研刊物管理",
                    // 权限匹配规则
                    permissionName: "research:paper:list",
                    // 图标
                    icon: ""
                }
            },
            {
                path: "work",
                name: "research-work",
                component: ResearchWork,
                meta: {
                    // 路由名字
                    name: "科研著作管理",
                    // 权限匹配规则
                    permissionName: "research:work:list",
                    // 图标
                    icon: ""
                }
            }
        ]
    },
    {
        path: "/comprehensive",
        name: "comprehensive",
        component: Comprehensive,
        meta: {
            // 路由名字
            name: "综合模块",
            // 权限匹配规则
            permissionName: "comprehensive",
            // 图标
            icon: ""
        },
        children: [
            {
                path: "/policy/document",
                name: "policy-document",
                component: PolicyDocument,
                meta: {
                    // 路由名字
                    name: "政策文件",
                    // 权限匹配规则
                    permissionName: "policy:document:list",
                    // 图标
                    icon: ""
                }
            }
        ]
    },
    {
        path: "/system/manage",
        name: "system-manage",
        component: SystemManage,
        meta: {
            // 路由名字
            name: "系统管理",
            // 权限匹配规则
            permissionName: "system:manage",
            // 图标
            icon: ""
        },
        children: [
            {
                path: "/system/user",
                name: "system-user",
                component: SystemUser,
                meta: {
                    // 路由名字
                    name: "用户管理",
                    // 权限匹配规则
                    permissionName: "system:user:list",
                    // 图标
                    icon: ""
                }
            },
            {
                path: "/system/role",
                name: "system-role",
                component: SystemRole,
                meta: {
                    // 路由名字
                    name: "角色管理",
                    // 权限匹配规则
                    permissionName: "system:role:list",
                    // 图标
                    icon: ""
                }
            },
            {
                path: "/system/menu",
                name: "system-menu",
                component: SystemMenu,
                meta: {
                    // 路由名字
                    name: "菜单管理",
                    // 权限匹配规则
                    permissionName: "system:menu:list",
                    // 图标
                    icon: ""
                }
            }
        ]
    },
    {
        path: "/plugin/manage",
        name: "plugin-manage",
        component: pluginManage,
        meta: {
            // 路由名字
            name: "插件管理",
            // 权限匹配规则
            permissionName: "plugin:manage",
            // 图标
            icon: ""
        },
        children: [
            {
                path: "/plugin/icon",
                name: "plugin-icon",
                component: pluginIcon,
                meta: {
                    // 路由名字
                    name: "字体图标",
                    // 权限匹配规则
                    permissionName: "plugin:icon:list",
                    // 图标
                    icon: ""
                }
            }
        ]
    },

];

export default dynamicRouter;